import threading
local_school = threading.local()
def process_student():
    std = local_school.student
    print("Hello:{},in {}".format(std,threading.current_thread().name))
def process_thread(name):
    local_school.student = name
    process_student()
def main():
    t1 = threading.Thread(target = process_thread,args=("A",),name='Thread-A')
    t2 = threading.Thread(target = process_thread,args=("B",),name='Thread-B')
    t1.start()
    t2.start()
    t1.join()
    t2.join()
if __name__ == '__main__':
    main()
